package com.educate.book.dao;

import com.educate.book.dao.impl.BookPageDaoImpl;
import com.educate.book.model.bo.BookPageBO;
import com.educate.book.model.po.BookPage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BookPageDao extends MongoRepository<BookPage, String> {

    /**
     * #{@link BookPageDaoImpl#query(BookPageBO, Pageable)}
     */
    Page<BookPage> query(BookPageBO bo, Pageable pageable);
}
